home *** CD-ROM | disk | FTP | other *** search
- Path: dawn.mmm.com!news
- From: kjhopps@mmm.com (Kevin J Hopps)
- Newsgroups: comp.lang.c++
- Subject: Re: class declaration
- Date: 26 Jan 1996 13:03:59 GMT
- Organization: 3M - St. Paul, MN 55144-1000 US
- Message-ID: <4eajfv$hgq@dawn.mmm.com>
- References: <4dphp6$1bp@noc2.drexel.edu> <4drakm$hnu@grid.direct.ca> <ALUN.CHAMPION.96Jan22114418@g7240065.bridge.bst.bls.com> <4e6ngs$f2d@classic.iinet.com.au>
- Reply-To: kjhopps@mmm.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- John A Ng (ng@mitswa.com.au) wrote:
- > >: st918h5w@dunx1.ocs.drexel.edu (Jonathan Juniman) wrote:
-
- [ question about whether parameter names are required in prototypes ]
-
- > The parameter variable name is ignored by the compiler. You can either
- > not put anything there, or you can have a (legal) variable name (whether
- > the name IS or NOT the same as that actually defined in the body). This
- > is is allowed for not so much for documentation as for the convenience
- > of being able to copy & paste between body and header declaration.
-
- > The typical thing is to leave the variable name in both body and header.
-
- IMHO, leaving a nicely chosen parameter name in the interface is good
- documentation, adding significantly to its understandability.
- --
- Kevin J. Hopps e-mail: kjhopps@mmm.com
- 3M Company phone: (612) 737-4643
- 3M Center, Bldg. 235-2D-57 fax: (612) 737-2700
- St. Paul, MN 55144-1000 Opinions are my own. I don't speak for 3M.
- But 3M speaks for me -- I did not write the following line:
-
- Opinions expressed herein are my own and may not represent those of 3M.
-